package com.ytclub.subject.common.enums;

import lombok.Getter;

/**
 * 标签类型枚举
 *
 * @author: HuangQi
 * @date: Created in 20:44 2023/12/16
 * @description: 标签类型枚举
 */
@Getter
public enum CategoryTypeEnum {
    PRIMAY(1, "岗位大类"),
    SECOND(2, "二级分类");

    public int code;

    public String desc;

    CategoryTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static CategoryTypeEnum getByCode(int codeVal) {
        for (CategoryTypeEnum isDeletedFlagEnum : CategoryTypeEnum.values()) {
            if (isDeletedFlagEnum.code == codeVal) {
                return isDeletedFlagEnum;
            }
        }
        return null;
    }


}
